//
//  PKMineViewControllerListCell.swift
//  Panku
//
//  Created by mac on 2017/2/7.
//  Copyright © 2017年 Monster. All rights reserved.
//

import UIKit
import SnapKit

class PKMineViewControllerListCell: PKBaseTableViewCell {
    
    //MARK: - properties
    lazy var titleLabel = UILabel()
    lazy var moreArrow = UIImageView()
    
    var viewModel:PKMineViewControllerListCellViewModel?{
        didSet{
            titleLabel.text = viewModel?.title
        }
    }
    
    override func setupCell() {
        contentView.addSubview(titleLabel)
        contentView.addSubview(moreArrow)
        
        moreArrow.image = R.image.mine_detail_arrow()
        
        titleLabel.font = UIFont.PKFont(Size: 17)
        titleLabel.textColor = UIColor(hexString: "5C5C5C")
        
        //设置布局参数
        
        titleLabel.snp.makeConstraints { (make) in
            make.centerY.equalTo(contentView.snp.centerY)
            make.left.equalTo(contentView.snp.left).offset(17)
        }
        
        moreArrow.snp.makeConstraints { (make) in
            make.centerY.equalTo(contentView.snp.centerY)
            make.right.equalTo(contentView.snp.right).offset(24)
        }
        
        
    }

}
